package com.houseliker.activity;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.houseliker.R;

/**
 * Created by sunrx on 2016/1/4.
 */
public class AgreementActivity extends BaseActivity {

    private WebView web_agreement;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setView(R.layout.agreement, TYPE_HEADER);
        setHeaderBar("使用协议");
        web_agreement = (WebView) findViewById(R.id.web_agreement);
        WebSettings settings = web_agreement.getSettings();
        settings.setSupportZoom(true);
        settings.setBuiltInZoomControls(true);
        web_agreement.loadUrl("file:///android_asset/agreement.html");
    }

    @Override
    protected void onLeftButtonClick() {
        super.onLeftButtonClick();
        finish();
    }
}
